#include <string>
#include <cstdlib>
#include <iostream>

using namespace std;

int GetNumberFromString(const string input, unsigned int& output)
{
    sscanf(input.c_str(), "%x", &output);
}


int main()
{
    unsigned int n;
    GetNumberFromString("1234", n);

    cout << hex << n << endl;

    return 0;
}

